<?php

namespace common\entities\myhtsq;

use Yii;

/**
 * This is the model class for table "myscrm_invoice_receivable".
 *
 * @property string $invoice_receivable_id
 * @property string $invoice_id
 * @property string $receivable_id
 * @property string $cur_billing_amount
 * @property string $created_on
 * @property string $created_by
 * @property string $modified_on
 * @property string $modified_by
 */
class InvoiceReceivableEntity extends \common\entities\ConfigEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_invoice_receivable';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['invoice_receivable_id'], 'required'],
            [['cur_billing_amount'], 'number'],
            [['created_on', 'modified_on'], 'safe'],
            [['invoice_receivable_id', 'invoice_id', 'receivable_id', 'created_by', 'modified_by'], 'string', 'max' => 36]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'invoice_receivable_id' => '关系ID',
            'invoice_id' => '发票ID',
            'receivable_id' => '合同应收款ID',
            'cur_billing_amount' => '本次开票金额',
            'created_on' => '创建时间',
            'created_by' => '创建人',
            'modified_on' => '修改时间',
            'modified_by' => '修改人',
        ];
    }
}
